package cn.csust.net2.manager.shared.po;

import java.io.Serializable;
import java.util.Date;

import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

import com.extjs.gxt.ui.client.data.BeanModelTag;

public class InnerMail extends PO implements Serializable,BeanModelTag{
	private static final long serialVersionUID = 1L;

	private Integer innerMailID;
	private String title;
	private String innerMailContent;
	private User sender;
	private User receiver;
	private Date sendDate;
	private String remark;
	

	public Integer getInnerMailID() {
		return innerMailID;
	}

	public void setInnerMailID(Integer innerMailID) {
		this.innerMailID = innerMailID;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	public String getInnerMailContent() {
		return innerMailContent;
	}


	public void setInnerMailContent(String innerMailContent) {
		this.innerMailContent = innerMailContent;
	}

	public User getSender() {
		return sender;
	}


	public void setSender(User sender) {
		this.sender = sender;
	}


	public User getReceiver() {
		return receiver;
	}


	public void setReceiver(User receiver) {
		this.receiver = receiver;
	}


	public Date getSendDate() {
		return sendDate;
	}

	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Override
	protected XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		XmlInfo xmlInfo = new XmlInfo();
		xmlInfo.setTextResource(instance.innerMail());
		xmlInfo.setSubclass("InnerMail");
		return xmlInfo;
	}

	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return null;
	}
}


